//
//  ZYIndexDeviceView.h
//  YiLin
//
//  Created by Zyark on 2018/6/8.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYDevice;
@class ZYIndexDeviceView;
@protocol ZYIndexDeviceViewDelegate <NSObject>
@optional
/**
 选中
 @param indexDeviceView 当前view
 @param device 当前设
 */
-(void)indexDeviceView:(ZYIndexDeviceView *)indexDeviceView didSelectDevice:(ZYDevice *)device;

@end
@interface ZYIndexDeviceView : UIView
-(instancetype)initWithFrame:(CGRect)frame withRoomType:(ZYHomeRoomType)type withDeviceArray:(NSArray *)deviceArray;
@property(nonatomic,assign) ZYHomeRoomType roomType;
@property(nonatomic,weak) id<ZYIndexDeviceViewDelegate> delegate;
-(void)setupTitle;
@end
